<!DOCTYPE HTML>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">

<div class="container-div">
    <div class="row">
        <div class="col-sm-12 search-collapse">
            <form id="formId">
                <div class="select-list">
                    <ul>
                                                                                                                                                                            <li>
                                        商铺名称：<input type="text" name="storeName"/>
                                    </li>

                                                                                                                                                                                    <li>
                                        商铺编号：<input type="text" name="storeCode"/>
                                    </li>

                                                                                                                                                                                    <li>
                                        商铺大类别编号：<input type="text" name="mccCode"/>
                                    </li>

                                                                                                                                                                                    <li>
                                        商铺大类别名称：<input type="text" name="mccName"/>
                                    </li>

                                                                                                                                                                                    <li>
                                        商铺小类别编号：<input type="text" name="subMccCode"/>
                                    </li>

                                                                                                                                                                                    <li>
                                        商铺小类别名称：<input type="text" name="subMccName"/>
                                    </li>

                                                                                                                                                                                    <li>
                                        商户省名称：<input type="text" name="provinceName"/>
                                    </li>

                                                                                                                                                                                    <li>
                                        商户省编码：<input type="text" name="provinceCode"/>
                                    </li>

                                                                                                                                                                                    <li>
                                        商户城市编码：<input type="text" name="cityCode"/>
                                    </li>

                                                                                                                                                                                    <li>
                                        商户城市名称：<input type="text" name="cityName"/>
                                    </li>

                                                                                                                                                                                    <li>
                                        商户县区名称：<input type="text" name="countyName"/>
                                    </li>

                                                                                                                                                                                    <li>
                                        商户县区编号：<input type="text" name="countyCode"/>
                                    </li>

                                                                                                                                                                                    <li>
                                        贴纸uuid：<input type="text" name="uuid"/>
                                    </li>

                                                                                                                                                                                    <li>
                                        电子标签：<input type="text" name="tag"/>
                                    </li>

                                                                                                                                                                                    <li>
                                        签约状态第几步0,1,2：<input type="text" name="sginStatus"/>
                                    </li>

                                                                                                                                                                                    <li>
                                        身份证正面：<input type="text" name="idCardZ"/>
                                    </li>

                                                                                                                                                                                    <li>
                                        身份证反面：<input type="text" name="idCardF"/>
                                    </li>

                                                                                                                                                                                    <li>
                                        银行卡正面：<input type="text" name="bankZ"/>
                                    </li>

                                                                                                                                                                                    <li>
                                        手持身份证：<input type="text" name="idCardS"/>
                                    </li>

                                                                                                            <li>
                            <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
                                    class="fa fa-search"></i>&nbsp;搜索</a>
                            <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
                                    class="fa fa-refresh"></i>&nbsp;重置</a>
                        </li>
                    </ul>
                </div>
            </form>
        </div>

        <div class="btn-group-sm hidden-xs" id="toolbar" role="group">
            <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:pypStore:add">
                <i class="fa fa-plus"></i> 添加
            </a>
            <a class="btn btn-primary btn-edit disabled" onclick="$.operate.edit()"
               shiro:hasPermission="system:pypStore:edit">
                <i class="fa fa-edit"></i> 修改
            </a>
            <a class="btn btn-danger btn-del btn-del disabled" onclick="$.operate.removeAll()"
               shiro:hasPermission="system:pypStore:remove">
                <i class="fa fa-remove"></i> 删除
            </a>
            <a class="btn btn-warning" onclick="$.table.exportExcel()"
               shiro:hasPermission="system:pypStore:export">
                <i class="fa fa-download"></i> 导出
            </a>
        </div>
        <div class="col-sm-12 select-table table-striped">
            <table id="bootstrap-table" data-mobile-responsive="true"></table>
        </div>
    </div>
</div>
<div th:include="include :: footer"></div>
<script th:inline="javascript">
    var editFlag = [[${@permission.hasPermi('system:pypStore:edit')}]];
    var removeFlag = [[${@permission.hasPermi('system:pypStore:remove')}]];
    var prefix = ctx + "system/pypStore";
                                                                                                                                                                                                                                                                                                                                                                                                                        
    $(function () {
        var options = {
            url: prefix + "/list",
            createUrl: prefix + "/add",
            updateUrl: prefix + "/edit/{id}",
            removeUrl: prefix + "/remove",
            exportUrl: prefix + "/export",
            modalName: "碰一碰",
            search: false,
            showExport: true,
            columns: [{
                checkbox: true
            },
                                                            {
                            field: 'id',
                            title: '主键',
                            visible: false
                        },
                                                                                                            {
                                field: 'storeName',
                                title: '商铺名称',
                                align: 'center',
                            },
                                                                                                                                    {
                                field: 'storeCode',
                                title: '商铺编号',
                                align: 'center',
                            },
                                                                                                                                    {
                                field: 'mccCode',
                                title: '商铺大类别编号',
                                align: 'center',
                            },
                                                                                                                                    {
                                field: 'mccName',
                                title: '商铺大类别名称',
                                align: 'center',
                            },
                                                                                                                                    {
                                field: 'subMccCode',
                                title: '商铺小类别编号',
                                align: 'center',
                            },
                                                                                                                                    {
                                field: 'subMccName',
                                title: '商铺小类别名称',
                                align: 'center',
                            },
                                                                                                                                    {
                                field: 'provinceName',
                                title: '商户省名称',
                                align: 'center',
                            },
                                                                                                                                    {
                                field: 'provinceCode',
                                title: '商户省编码',
                                align: 'center',
                            },
                                                                                                                                    {
                                field: 'cityCode',
                                title: '商户城市编码',
                                align: 'center',
                            },
                                                                                                                                    {
                                field: 'cityName',
                                title: '商户城市名称',
                                align: 'center',
                            },
                                                                                                                                    {
                                field: 'countyName',
                                title: '商户县区名称',
                                align: 'center',
                            },
                                                                                                                                    {
                                field: 'countyCode',
                                title: '商户县区编号',
                                align: 'center',
                            },
                                                                                                                                    {
                                field: 'uuid',
                                title: '贴纸uuid',
                                align: 'center',
                            },
                                                                                                                                    {
                                field: 'tag',
                                title: '电子标签',
                                align: 'center',
                            },
                                                                                                                                    {
                                field: 'sginStatus',
                                title: '签约状态第几步0,1,2',
                                align: 'center',
                            },
                                                                                                                                    {
                                field: 'idCardZ',
                                title: '身份证正面',
                                align: 'center',
                            },
                                                                                                                                    {
                                field: 'idCardF',
                                title: '身份证反面',
                                align: 'center',
                            },
                                                                                                                                    {
                                field: 'bankZ',
                                title: '银行卡正面',
                                align: 'center',
                            },
                                                                                                                                    {
                                field: 'idCardS',
                                title: '手持身份证',
                                align: 'center',
                            },
                                                                            {
                    title: '操作',
                    align: 'center',
                    formatter: function (value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="#" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="#" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }]
        };
        $.table.init(options);
    });
</script>
</body>
</html>